package com.szh.mysobproject.di

import com.szh.mysobproject.app.AppApplication
import com.szh.mysobproject.viewmodel.app.AppViewModel
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.android.components.ActivityComponent

@Module
@InstallIn(ActivityComponent::class)
object AppModule {

    @Provides
    fun getString(): String = "Demo"

    @Provides
    fun provideAppViewModel(): AppViewModel = AppApplication.getAppViewModel()

}